package com.kamistoat.meimeichat.meimeichatserverapplication.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author kamistoat
 * @email linjianshanke@163.com
 * @date 2022-10-20 16:36:02
 */
@Data
@TableName("mmc_user_friend")
public class MmcUserFriendEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 自增ID
	 */
	@TableId
	private Long id;
	/**
	 * 用户ID
	 */
	private String userId;
	/**
	 * 好友用户ID
	 */
	private String userFriendId;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 状态。 0-正常 1-删除 2-拉黑
	 */
	private Integer relationStatus;

	public MmcUserFriendEntity(String userid, String userfriendid) {
		this.userId = userid;
		this.userFriendId = userfriendid;
		this.createTime = new Date();
		this.updateTime = new Date();
		this.relationStatus = 0;
	}
}
